package com.smmisia.shop.mapper;

import com.smmisia.shop.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    int trySale(Long productId, Long quantity);

    int cancelSale(Long id, Long quantity);
}




